// 除了null和undefined，Object可以简写{}
let data: Object = 1 /*'1'*/

let data2: object = {
    age: 23
}

// 联合类型
let str: string | number = 3
console.log(str)

// 交叉类型
type Obj1 = { username: string }
type Obj2 = { age: number }
let obj: Obj1 = {username: 'abc'}
let obj2: Obj2 = {age: 23}

let obj3: Obj1 & Obj2 = {
    username: 'zhangsan',
    age: 23
}

export {}
